package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.NecessaryVariableExample.E_NECESSARY_ID;
import static org.jsola.hr.example.NecessaryVariableExample.E_TEMPLATE_ID;
import static org.jsola.hr.example.NecessaryVariableExample.M_NECESSARY_ID_MAX;
import static org.jsola.hr.example.NecessaryVariableExample.N_NECESSARY_ID;
import static org.jsola.hr.example.NecessaryVariableExample.N_TEMPLATE_ID;

/**
 * 员工必填信息关联变量
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【员工必填信息关联变量】的参数")
@Data
public class NecessaryVariableUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private Long id;

    @ApiModelProperty(notes = N_TEMPLATE_ID, example = E_TEMPLATE_ID)
    private Long templateId;

    @ApiModelProperty(notes = N_NECESSARY_ID, example = E_NECESSARY_ID)
    @Length(max = 32, message = M_NECESSARY_ID_MAX)
    private String necessaryId;


}

